package com.lg.service.impl;

import com.lg.api.UserServiceFacade;
import com.lg.api.result.BaseResult;
import lombok.extern.java.Log;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Service;

import java.io.IOException;

/**
 * @author lg
 * @date 2021/5/3
 */
@Service
@Log
public class UserServiceFacadeImpl implements UserServiceFacade {
    public BaseResult<String> checkUserName(String userName) {
        return new BaseResult<String>(true,"success",userName);
    }

    public static void main(String[] args) throws InterruptedException, IOException {

        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("dubbo-provider.xml");
        context.start();
        System.in.read(); // 按任意键退出
    }
}
